import {mapGetters} from 'vuex'
export default {
  computed:{
    ...mapGetters('myCart',['goodsNum'])
  },
  onShow() {
    uni.setTabBarBadge({
      index:2,
      text:this.goodsNum+''
    })
  }
}